package com.party.core.dao.read.order;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.order.OrderFormHistory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author yifeng
 * @createTime 2018/1/25 0025 上午 10:42
 * @description 历史订单表数据读取
 */
@Repository
public interface OrderFormHistoryReadDao extends BaseReadDao<OrderFormHistory> {
    /**
     * 手动分页列表
     *
     * @param orderForm
     * @param params
     * @return
     */
    List<OrderFormHistory> newWebListPage(@Param(value = "order") OrderFormHistory orderForm, @Param(value = "params") Map<String, Object> params);

    /**
     * 手动分页计数
     *
     * @param orderForm
     * @param params
     * @return
     */
    Integer newWebListCount(@Param(value = "order") OrderFormHistory orderForm, @Param(value = "params") Map<String, Object> params);
}
